package com.t114514.demo.service;

import com.t114514.demo.pojo.Answer;
import com.t114514.demo.pojo.StudentQuestionnaireTeacher;

import java.util.List;

public interface QuestionnaireAnswerService {
    void add(StudentQuestionnaireTeacher studentQuestionnaireTeacher);

    void addAnswer(Answer answer);

    void finishAnswer(StudentQuestionnaireTeacher studentQuestionnaireTeacher);

    Answer isExist(Answer answer);

    void updateAnswer(Answer answer);

    boolean answerAllQuestion(StudentQuestionnaireTeacher studentQuestionnaireTeacher);

    List<Answer> findAnswersByQuestionId(Integer questionId,int teacherId);
}
